import { Component } from '@angular/core';
import { NzModalService } from 'ng-zorro-antd/modal';
import { ActivatedRoute, Router } from '@angular/router';

@Component({
  selector: 'exception-404',
  templateUrl: './404.component.html'
})
export class Exception404Component {
  constructor(
    modalSrv: NzModalService,
    private router: Router
  ) {
    modalSrv.closeAll();
  }

  history() {
    history.go(-1);
  }

  login() {
    this.router.navigate(['passport/login']);
  }
}